<template>
  <div>
    Hello info
    <button type="button" @click="add()">添加</button>
  </div>
</template>

<script>
import store from '@/store'

export default {
    name:'Info',
    store,
    data(){
        return{
            msg:"可以的"
        }
    },
    methods:{
        add(){
            // this.$Message.info(store.state.count);

            console.info("添加一个事件")
            // 添加这样一个事件
            
            // eslint-disable-next-line no-debugger
            debugger

            store.commit('increase')

        }
    }
}
</script>
